package com.jier.vo.admin;

import com.jier.entities.BaseEntity;
import com.jier.entities.SystemUser;
import com.jier.vo.BaseVo;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Table;
import java.io.Serializable;

/**
 * 系统用户
 *
 * @author eayon
 * @date 2017-05-08
 */
public class SystemUserVo extends BaseVo implements Serializable {
    /**
     * 编号
     */
    @ApiModelProperty(value = "编号", dataType = "String")
    private String code;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", dataType = "String")
    private String name;

    /**
     * 联系方式
     */
    @ApiModelProperty(value = "联系方式", dataType = "String")
    private String phone;

    /**
     * 状态，0 禁用，1 启用
     */
    @ApiModelProperty(value = "状态，0 禁用，1 启用", dataType = "Boolean")
    private Boolean status;

    public SystemUserVo(SystemUser systemUser) {
        super(systemUser);
        this.code = systemUser.getCode();
        this.name = systemUser.getName();
        this.phone = systemUser.getPhone();
        this.status = systemUser.getStatus();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }
}